package cn.jiyun.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

/**
 * @author 季乾帅
 * @create 2023/8/22 10:44
 */
@Data
@ToString
@TableName(value = "consumer")
public class Consumer {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField(value = "user_name")
    private String userName;
    @TableField(value = "user_img")
    private String userImg;
    @TableField(value = "id_code")
    private String idCode;
    private String sex;
    private String sign;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    @TableField(value = "join_date")
    private Date joinDate;
    private String status;
    @TableField(value = "dept_id")
    private String deptId;
    private String zhanghao;
    @TableField(value = "role_id")
    private String roleId;

    private String usernames;
    private String password;

}
